package com.example.Sao.SqlLite;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * @ProjectName: scan
 * @Package: com.example.MyApplication.SqlLite
 * @ClassName: OpenHelper
 * @Description: java类作用描述
 * @Author: 作者名
 * @CreateDate: 2020/4/21 20:39
 * @UpdateUser: 更新者：
 * @UpdateDate: 2020/4/21 20:39
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class RecordSQLiteOpenHelper extends SQLiteOpenHelper {

    private static String name = "history.db";
    private static Integer version = 1;

    public RecordSQLiteOpenHelper(Context context) {
        super(context, name, null, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table records(id integer primary key autoincrement,name varchar(200))");
//        db.execSQL("create table qrcode(id integer primary key autoincrement,name varchar(200))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }


}
